package com.stx.threeGrup.model.automodel;

import java.io.Serializable;

public class User implements Serializable {

    public User() {
    }

    public User(String userUname, String userPass, Integer userSex, String userTel) {
        this.userUname = userUname;
        this.userPass = userPass;
        this.userSex = userSex;
        this.userTel = userTel;
    }

    private Integer userId;

    private String userUname;

    private String userPass;

    private String userTname;

    private Integer userSex;

    private String userTel;

    private String userImgurl;

    private static final long serialVersionUID = 1L;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserUname() {
        return userUname;
    }

    public void setUserUname(String userUname) {
        this.userUname = userUname == null ? null : userUname.trim();
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass == null ? null : userPass.trim();
    }

    public String getUserTname() {
        return userTname;
    }

    public void setUserTname(String userTname) {
        this.userTname = userTname == null ? null : userTname.trim();
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel == null ? null : userTel.trim();
    }

    public String getUserImgurl() {
        return userImgurl;
    }

    public void setUserImgurl(String userImgurl) {
        this.userImgurl = userImgurl == null ? null : userImgurl.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", userUname=").append(userUname);
        sb.append(", userPass=").append(userPass);
        sb.append(", userTname=").append(userTname);
        sb.append(", userSex=").append(userSex);
        sb.append(", userTel=").append(userTel);
        sb.append(", userImgurl=").append(userImgurl);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}